function setLang(lang){
	var form = document.createElement("form");
	form.action ="/i18n/setlang/";
	form.method ="POST";
	form.style.display="none";
	var input = document.createElement("input");
	input.name="language";
	input.value=lang;
	form.appendChild(input);
	document.body.appendChild(form);
	form.submit();
}